<div ng-if="pagedata.pluginset.footernav.length>0" ng-class="{'fui-navbar':1,'is_backpage':pagedata.is_backpage && main.openbackpage==1}">
    <a ng-repeat="item in pagedata.pluginset.footernav" href="javascript:;" ng-click="gotoaction(item);" ng-class="{'external nav-item':1,'active':show_active(item.action)}">
        <span ng-if="item.nums>0" class="badge">{{item.nums}}</span>
		<span ng-if="item.isimg!=1" class="icon {{item.icon || 'icon-shouye'}}"></span>
		<span ng-if="item.isimg==1" class="icon"><img style="width:1.1rem;height:1.1rem;" ng-src="{{tomedia(item.iconimg)}}"/></span>
        <span class="label">{{item.title}}</span>
    </a>
</div>
<script>
scope.pagedata.pluginset=scope.pagedata.pluginset?scope.pagedata.pluginset:{}
scope.gotoaction=function(menu){
	menu.action=menu.action?menu.action:menu.url
	if(menu.type==1){
		location.href= 'tel:'+menu.action
	}else if(menu.type==2){
		wx.scanQRCode({
				needResult: 1, 
				scanType: ["qrCode","barCode"],
				success: function (res) {
					var result = res.resultStr;
					location.href = result;
				}
		});
	}else if(menu.type==3){
		scope.pagedata.tokefu();
	}else{
		scope.access_json(menu.action);
	}
}
</script>